#pragma once

#include<stdio.h>
#include<stdlib.h>
//#include<time.h>

#define ROW 3
#define COL 3

#define ROWS ROW+2
#define COLS COL+2

#define MINE_NUMBER 1

void board_init(char show[ROWS][COLS], int rows, int cols,char set);

void board_show(char show[ROWS][COLS], int row, int col);

void set_mine(char mine[ROWS][COLS], int row, int col);

void scan_mine(char mine[ROWS][COLS], char show[ROWS][COLS], int row, int col);